package com.ruoyi.payment.controller;

import com.ruoyi.payment.service.RoomDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/fetchRoomData")
public class RoomDataController {

    @Autowired
    private RoomDataService roomDataService;

    @GetMapping("findAll")
    public List<Map<String, Object>> fetchRoomData() {
        return roomDataService.fetchRoomData();
    }
}